PEGetMargins

Use PEGetMargins to retrieve the page margin settings for the specified report. Use this function to retrieve the report margins and PESetMargins, to set the report margins.

C Syntax
BOOL CRPE_API PEGetMargins (
        short printJob,
        short FAR *left,
        short FAR *right,
        short FAR *top,
        short FAR *bottom );
Parameters

printJob

Specifies the print job that you want to query to retrieve margin information.

left

Specifies a pointer to the value of the left margin.

right

Specifies a pointer to the value of the right margin.

top

Specifies a pointer to the value of the top margin.

bottom

Specifies a pointer to the value of the bottom margin.

Returns
VB Syntax
Declare Function PEGetMargins Lib "crpe32.dll" ( ByVal printJob As 
Integer,
    LeftMargin As Integer, RightMargin As Integer,
    TopMargin As Integer, BottomMargin As Integer ) As Integer
Delphi Syntax
function PEGetMargins (
    printJob: Word;
    var left: Word;
    var right: Word;
    var top: Word;
    var bottom: Word
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com